// noinspection TypeScriptValidateTypes

import {App} from 'vue';
import FxIcon from './icon/index';

// https://xicons.org/#/
import * as IconsVue from '@vicons/ionicons5';

const BaseView = {
  install(app: App) {
    app.component(FxIcon.name, FxIcon);
    IconView.install(app);
  }
};

const IconView = {
  install(app: App) {
    for (const [key, component] of Object.entries(IconsVue)) {
      app.component('ElNaive' + key, component);
    }
  }
};

export default BaseView;